//
//  YYMessageTableViewController.swift
//  YYWeibo
//
//  Created by strongwallyi on 15/12/26.
//  Copyright © 2015年 strongwallyi. All rights reserved.
//

import UIKit

class YYMessageTableViewController: YYVisitorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        if userLogin == false{
            visitorView.setupInfo("visitordiscover_image_message", messageText: "登录后，别人评论你的微博，发给你的消息，都会在这里收到通知")
            return
        }

        setupUI()
    }

    private func setupUI(){
        navigationItem.leftBarButtonItem = UIBarButtonItem( title: "发现群", target: self, action: "foundGroup")
    }

    @objc private func foundGroup(){
        print("发现群")
        let vc = YYTempViewcontroller()
        navigationController?.pushViewController(vc, animated: true)
    }

}
